<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>SV Macros - Logger Block</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/prettify.js"></script></head><body class="FramedContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.52 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CSection"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="SV_Macros"></a>SV Macros</h1><div class=CBody><p>SV Macros will get use in SV world Env.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#SV_Macros" >SV Macros</a></td><td class=SDescription>SV Macros will get use in SV world Env.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Macros" >Macros</a></td><td class=SDescription></td></tr><tr class="SMacro SIndent2 SMarked"><td class=SEntry><a href="#`log_info" >`log_info</a></td><td class=SDescription>This macro used to Print only messages.</td></tr><tr class="SMacro SIndent2"><td class=SEntry><a href="#`log_dinfo" >`log_dinfo</a></td><td class=SDescription>This macro used to Print messages with data which passed from C world.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Macros"></a>Macros</h3></div></div>

<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="`log_info"></a>`log_info</h3><div class=CBody><p>This macro used to Print only messages.</p><blockquote><pre>`log_info(ID,MSG,VERBOSITY)

ex. `log_info(MSG1,&quot;Printing Message with log_info macro&quot;,UVM_LOW)</pre></blockquote><p>Calls <a href="logger_base-sv.html#wait_for_state" class=LFunction id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">wait_for_state</a> API of logger and print Message in UVM style.</p><p><b>Note:</b> Here VERBOSITY is refered to UVM verbosity i.e &lt;UVM_LOW&gt;,&lt;UVM_HIGH&gt; etc.</p></div></div></div>

<div class="CMacro"><div class=CTopic><h3 class=CTitle><a name="`log_dinfo"></a>`log_dinfo</h3><div class=CBody><p>This macro used to Print messages with data which passed from C world.</p><blockquote><pre>`log_dinfo(ID,MSG,VERBOSITY)

ex. `log_dinfo(MSG1,$psprintf(&quot;writing Data %h&quot;,wr_value),UVM_LOW)</pre></blockquote><p>Calls <a href="logger_base-sv.html#get_data_with_state" class=LFunction id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">get_data_with_state</a> API of logger and print Message and data in UVM style.</p><p><b>Note:</b> Here VERBOSITY is refered to UVM verbosity i.e &lt;UVM_LOW&gt;,&lt;UVM_HIGH&gt; etc.</p></div></div></div>

</div><!--Content-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>task automatic wait_for_state(</td><td class="PType  prettyprint " nowrap>int&nbsp;</td><td class="PParameter  prettyprint " nowrap>s</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>This task waits for particular state which is set from C testcase.</div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>task automatic get_data_with_state(</td><td class="PTypePrefix  prettyprint " nowrap>input&nbsp;</td><td class="PType  prettyprint " nowrap>int&nbsp;</td><td class="PParameter  prettyprint " nowrap>s,</td></tr><tr><td></td><td class="PTypePrefix  prettyprint " nowrap>output&nbsp;</td><td class="PType  prettyprint " nowrap>bit[(`DATA_WIDTH-1):0]&nbsp;</td><td class="PParameter  prettyprint " nowrap>ret_data[]</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>This task wait for perticular state with user data at the output ret_data. </div></div><!--END_ND_TOOLTIPS-->

<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>